cd "$replication\code\"

set matsize 5000

****************************************************************************** Input variables ************************************************************
global cluster "sd_code"
global AS_infs `""""'
global AS_var "NA"
global sample "year!=."
global controls ""
global controlsXYFEs ""
global controlsXinfs ""
global omitted_year1=-1
global omitted_year2=-6
global min_year=-6
global max_year=5
global colour="no_graphs"
global depvar "icw_irrigation"

global int "elecXroad"
local inf1=substr("${int}",1,4)
local inf2=substr("${int}",6,.)
global  infs "`inf1' `inf2' ${int}"
global absorb "shrid_code i.s_code#i.year"

***** Column 1
global depvar "bhuvan_dry"
qui : do Z_Event_code.do
qui estimates restore main_regression
foreach inf in $infs {
	lincom ${post_terms_`inf'}
}


***** Column 2
global title "Jain"
global depvar "winter_cropping"
qui : do Z_Event_code.do
qui estimates restore main_regression
foreach inf in $infs {
	lincom ${post_terms_`inf'}
}


***** Column 3
global title "A and N"
global depvar "ndvi_delta_r_"
qui : do Z_Event_code.do
qui estimates restore main_regression
foreach inf in $infs {
	lincom ${post_terms_`inf'}
}



***** Column 4
global title "ICW index"
global depvar "icw_linear"
qui : do Z_Event_code.do
qui estimates restore main_regression
foreach inf in $infs {
	lincom ${post_terms_`inf'}
}
